package com.lyw.db.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.lyw.db.entites.Knowledge

@Dao
interface KnowledgeDao {
    @Query("SELECT * FROM knowledge")
    fun getAllKnowledges(): List<Knowledge>


    @Insert
    fun insertAll(vararg knowledge: Knowledge)

    @Insert
    fun insertAll( knowledges: List<Knowledge>)
}